<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
</head>
<body>
<h1>Hello World</h1>
<br>
<button id="logout" type="button">退出登录</button>
<script>
    let logoutBtn = document.getElementById("logout");
    logoutBtn.addEventListener("click", function (ev) {
        location.href = "/auth/logout";
    });
</script>
</body>
</html>